package com.health.healthSys.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.health.healthSys.mapper.HealthUsersMapper;
import com.health.healthSys.domain.HealthUsers;
import com.health.healthSys.service.IHealthUsersService;

/**
 * 用户管理Service业务层处理
 *
 * @author maple
 * @date 2025-02-28
 */
@Service
public class HealthUsersServiceImpl implements IHealthUsersService
{
    @Autowired
    private HealthUsersMapper healthUsersMapper;

    /**
     * 查询用户管理
     *
     * @param userid 用户管理主键
     * @return 用户管理
     */
    @Override
    public HealthUsers selectHealthUsersByUserid(Long userid)
    {
        return healthUsersMapper.selectHealthUsersByUserid(userid);
    }

    /**
     * 查询用户管理列表
     *
     * @param healthUsers 用户管理
     * @return 用户管理
     */
    @Override
    public List<HealthUsers> selectHealthUsersList(HealthUsers healthUsers)
    {
        return healthUsersMapper.selectHealthUsersList(healthUsers);
    }

    /**
     * 新增用户管理
     *
     * @param healthUsers 用户管理
     * @return 结果
     */
    @Override
    public int insertHealthUsers(HealthUsers healthUsers)
    {
        return healthUsersMapper.insertHealthUsers(healthUsers);
    }

    /**
     * 修改用户管理
     *
     * @param healthUsers 用户管理
     * @return 结果
     */
    @Override
    public int updateHealthUsers(HealthUsers healthUsers)
    {
        return healthUsersMapper.updateHealthUsers(healthUsers);
    }

    /**
     * 批量删除用户管理
     *
     * @param userids 需要删除的用户管理主键
     * @return 结果
     */
    @Override
    public int deleteHealthUsersByUserids(Long[] userids)
    {
        return healthUsersMapper.deleteHealthUsersByUserids(userids);
    }

    /**
     * 删除用户管理信息
     *
     * @param userid 用户管理主键
     * @return 结果
     */
    @Override
    public int deleteHealthUsersByUserid(Long userid)
    {
        return healthUsersMapper.deleteHealthUsersByUserid(userid);
    }

    @Override
    public HealthUsers selectHealthUsersByUsername(String username) {
        return healthUsersMapper.selectHealthUsersByUserName(username);
    }


}
